package com.ywk.base.designPattern.proxy.staticProxy;

/**
 * @Author zbh
 * @Date 2023/4/3
 */
public class IntermediaryProxy implements IRentHouse{

    private IRentHouse iRent;

    public IntermediaryProxy(IRentHouse iRentHouse) {
        iRent=iRentHouse;
    }
    @Override
    public void rentHouse() {
        System.out.println("交中介费");
        iRent.rentHouse();
        System.out.println("中介负责维修管理");
    }
}
